<div class="add">
	<form action="<?php echo url('album/imgAdd');?>" method="post" id="addForm">
		<table cellpadding="0" cellspacing="0">
			<tr>
				<td class="inputtxt" align="right"><span>图片</span></td>
				<td align="left" class="magin">
					<?php echo fetch('uploadImg');?>
				</td>
			</tr>
			<tr height="30"><td colspan="2" align="right"><input type="submit" value="添加" id="catesub" /></td></tr>
		</table>
		<input type="hidden" name="albumID" value="<?php echo $albumID;?>" /> 
	</form>
</div>
<script type="text/javascript">
$(document).ready(function(){
	submitForm("#addForm",{
		dataType:'json',
		success:function(data){
				if(data.s=='1'){
					location.href="<?php echo url('album/img?id='.$albumID);?>";
				}else{
					alert(data.i);
				}
			},
	});
});
</script>
